#!/usr/bin/env python
#-*- coding:utf8 -*-
import web
from app.controllers.application_controller import ApplicationController
from app.helpers.users_helper import Helper
from app.models.user import User
class UsersController(ApplicationController):
    User = User()
    def initialize(self):
        super(UsersController,self).initialize()
        self.data['active'] = self.params.get('controller')
        self.require_login()
        self.is_admin()

    def index(self):
        self.data['users'] = self.User.get_all()

    def new(self):
        pass

    def show(self,id):
        print id

    def edit(self,id):
        print id
